package xyz.zhno.factory.simple;

import xyz.zhno.factory.method.car.Car;
import xyz.zhno.factory.simple.enums.CarTypeEnum;
import xyz.zhno.factory.simple.factory.CarFactory;

/**
 * 测试
 * @author zh_o
 * @date 2020-11-14
 */
public class Test {

    public static void main(String[] args) {
        Car car1 = CarFactory.getCar(CarTypeEnum.AUDI);
        Car car2 = CarFactory.getCar(CarTypeEnum.FORD);
        Car car3 = CarFactory.getCar(CarTypeEnum.TESLA);
        car1.printName();
        car2.printName();
        car3.printName();
    }

}
